package web.domain;

public class UserTask {
	private String taskName;
	private String taskID;
	private String taskForm;
	private String taskCreateTime;
	private String taskDescription;
	private String id;//标识业务的ID
	private String url;
	
	private String target;
	
	public String getTaskName() {
		return taskName;
	}
	public void setTaskName(String taskName) {
		this.taskName = taskName;
	}
	public String getTaskID() {
		return taskID;
	}
	public void setTaskID(String taskID) {
		this.taskID = taskID;
	}
	public String getTaskForm() {
		return taskForm;
	}
	public void setTaskForm(String taskForm) {
		this.taskForm = taskForm;
	}
	public String getTaskCreateTime() {
		return taskCreateTime;
	}
	public void setTaskCreateTime(String taskCreateTime) {
		this.taskCreateTime = taskCreateTime;
	}
	public String getTaskDescription() {
		return taskDescription;
	}
	public void setTaskDescription(String taskDescription) {
		this.taskDescription = taskDescription;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String form,String id,String taskID) {
		if(form!=null){
			if(form.contains("?")){
				this.url = form+"&id="+id+"&taskId="+taskID+"&taskSign=1";
			}else{
				this.url = form+"?id="+id+"&taskId="+taskID+"&taskSign=1";
			}
			if(url.indexOf("printFlag")>0){
				this.target="1";
			}else{
				this.target="0";
			}
		}
	}
	public String getTarget() {
		return target;
	}
	public void setTarget(String target) {
		this.target = target;
	}

}
